package com.hdey.mapper.heng;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.hdey.pojo.heng.SmbmsRolePermission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.util.List;

public interface SmbmsRolePermissionMapper extends BaseMapper<SmbmsRolePermission> {

//    @Select("SELECT perm_id FROM smbms_role_permission ${ew.customSqlSegment}")
//    List<Integer> findPermIdList(@Param(Constants.WRAPPER) Wrapper wrapper);

    @Select("SELECT perm_id FROM smbms_role_permission ${roleId}")
    List<Integer> findPermIdList(Integer roleId);
}
